package com.booter.ws;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @author lcw
 * @date 2023/3/27 17:04
 */
@Slf4j
//@ServletComponentScan
@SpringBootApplication(exclude = {})
public class SpringBootWsApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(SpringBootWsApplication.class, args);

        Runtime.getRuntime().addShutdownHook(new Thread(() -> log.info("application is shutting down")));
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(SpringBootWsApplication.class);
    }


}
